﻿<ws:ApplicationView x:Class="MultiMasterView.Modules.Core.ImageViewer.ImageViewerView" x:ClassModifier="internal" x:TypeArguments="ImageViewer:IImageViewerViewModel"
                    xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation"
                    xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml"
                    xmlns:mc="http://schemas.openxmlformats.org/markup-compatibility/2006"
                    xmlns:d="http://schemas.microsoft.com/expression/blend/2008"
                    xmlns:ws="clr-namespace:Creventive.Wpf.ShellFactory.Workspace;assembly=Creventive.Wpf.ShellFactory"
                    xmlns:ImageViewer="clr-namespace:MultiMasterView.Modules.Core.ImageViewer"
                    mc:Ignorable="d"
                    d:DesignHeight="300" d:DesignWidth="300"
                    Title="Image Viewer">
	<Grid>
		<Grid.RowDefinitions>
			<RowDefinition Height="Auto" />
			<RowDefinition Height="*" />
		</Grid.RowDefinitions>
		<ToolBar>
			<Button Content="Open" Command="{Binding OpenCommand}" />
		</ToolBar>
		<ScrollViewer Grid.Row="1" HorizontalScrollBarVisibility="Visible" VerticalScrollBarVisibility="Visible">
			<Image Source="{Binding Image}"
			       Width="{Binding Source.PixelWidth, RelativeSource={x:Static RelativeSource.Self}}"
			       Height="{Binding Source.PixelHeight, RelativeSource={x:Static RelativeSource.Self}}" />
		</ScrollViewer>
	</Grid>
</ws:ApplicationView>